Repository navigation
Fix: CodeViewer scroll handler crash - #63
Conversation
…1-beta Capture scrollTop synchronously before updating the React state to avoid accessing a nullified currentTarget while rendering large snippets
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Essentials Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
Included review availability: 4 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. 📝 WalkthroughWalkthroughA versão foi atualizada para ChangesAlinhamento de versões
Manipulador de rolagem do CodeViewer
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The update prevents the CodeViewer scroll crash and aligns the application version across components. No remaining merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
Summary
Fix the
CodeViewerscroll handler crash that occurred when opening or scrolling large snippets. The handler now capturesscrollTopsynchronously before updating React state, preventing access to a nullifiedcurrentTarget.This PR also bumps the application version to
0.2.1-beta.Related issue
Closes #
Type of change
How was this tested?
npm run buildinfrontend/.Checklist
CONTRIBUTING.md.Screenshots or recordings
Not applicable. This is a behavior fix without a visual UI change
Summary by CodeRabbit
Atualização
Melhorias